# Contributor: Thomas Boerger <thomas@webhippie.de>
# Maintainer: omni <omni+alpine@hack.org>
pkgname=mycli
pkgver=1.25.0
pkgrel=0
pkgdesc="MySQL CLI with autocompletion and syntax highlighting"
url="https://www.mycli.net/"
arch="noarch"
license="BSD-3-Clause"
depends="
	python3
	py3-pyaes
	py3-click
	py3-pygments
	py3-prompt_toolkit
	py3-pymysql
	py3-sqlparse
	py3-configobj
	py3-cryptography
	py3-cli_helpers
	py3-pyperclip
	"
makedepends="python3-dev py3-setuptools py3-paramiko"
checkdepends="py3-pytest py3-mock"
source="https://files.pythonhosted.org/packages/source/m/mycli/mycli-$pkgver.tar.gz"

build() {
	python3 setup.py build
}

check() {
	python3 -m pytest -v test
}

package() {
	python3 setup.py install --prefix=/usr --root="$pkgdir"
	rm -rf "$pkgdir"/usr/lib/python3*/site-packages/test
}

sha512sums="
f6c35e51cc8d893ec57c7c1c918a0d550f47c9b41402a8b182737a4106e95a6e0705248a965ed3cc36745d860ea76135ad138e93f4ba9ad01ffac4e3e2005b6c  mycli-1.25.0.tar.gz
"
